package com.haiyu.manager.dao;

import com.haiyu.manager.dto.Category1DTO;
import com.haiyu.manager.pojo.Category1;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mapper.MyMapper;
import java.util.List;

@Repository
public interface Category1Mapper extends MyMapper<Category1>{


    ///////////////////////////////////////////////////////
    List<Category1DTO> getCategory1List();
    List<Category1> getCategory1s();

    int updateCategory1(Category1 category1);

    int updateCategory1Status(@Param("category1Id") Integer category1Id, @Param("status") Integer status);
    Category1 getCategory1(@Param("category1Id") Integer category1Id);

    Category1 getCategory1ByName(@Param("category1Name")String category1Name,@Param("category1Id") Integer category1Id);

}
